<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css</title>
    <script src="jquery-3.2.1.js"></script>
    <style>
        @font-face {
            font-family: "Bitstream Vera Serif Bold";
            src: url("https://mdn.mozillademos.org/files/2468/VeraSeBd.ttf");
        }
        body {
            font-family:"Bitstream Vera Serif Bold";
        }
        img{
            top: 5px;
            left: 150px;
            border:medium double black;
        }
        p.toggle{
            float: left;
            border: medium double black;
            width:40%;
            margin: 2px;
            padding: 2px;
        }
        #grad1{
            width: 100px;
            height: 100px;
            border: 1px solid rgb(51, 51, 51);
            background:linear-gradient(0deg, red 10%, orange,yellow,green,cyan,blue,purple 85%);
        }
        #grad2{
            width: 100px;
            height: 100px;
            background:repeating-linear-gradient(180deg,red,red 5px,white 5px,white 10px);
        }
        #grad3{
            width: 100px;
            height: 100px;
            background: radial-gradient(farthest-corner at 30% 30%,red,yellow,green);
        }
        #grad4{
            width: 100px;
            height: 100px;
            background: radial-gradient(farthest-side at 70% 70%,red,yellow,green);
        }
        #grad5{
            width: 100px;
            height: 100px;
            background: radial-gradient(closest-corner at 30% 30%,blue,green,yellow,red);
        }
        #grad6{
            width: 100px;
            height: 100px;
            background: radial-gradient(closest-side at 30% 30%,blue,green,yellow,red);
        }
        #grad7{
            width: 100px;
            height: 100px;
            background: repeating-radial-gradient(red,red 5px,white 5px,white 10px);
        }
        #shadow{
            text-shadow: 10px 40px 5px #ccc;
        }
        #translate1{
            width: 100px;
            height:100px;
            background-color: #2aabd2;
            transform: rotateX(0deg) rotateZ(30deg);
        }
        #translate2{
            width: 100px;
            height: 100px;
            background-color: #2aabd2;
            transform: translate(50px,100px) rotate(0deg) scale(0.5) skew(0deg,30deg);

        }
        #transition1{
            width:100px;
            height: 100px;
            background-color: #1b6d85;
            transition: width 2s,height 2s,transform 2s;
            transition-delay: 0.5s;
            transition-timing-function: ease-in-out;
        }
        #transition1:hover{
            width: 150px;
            height: 150px;
            transform: rotateZ(360deg);
        }
        #animation1{
            -moz-animation-duration: 3s;
            -webkit-animation-duration: 3s;
            -moz-animation-name: slidein;
            -webkit-animation-name: slidein;
            -moz-animation-iteration-count: infinite;
            -webkit-animation-iteration-count: infinite;
            -moz-animation-direction: alternate;
            -webkit-animation-direction: alternate;
            animation-play-state: running;
        }
        @-moz-keyframes slidein {
            from{
                margin-left: 100%;
                width: 300%;
                transform: rotateX(0deg);
            }
            75% {
                font-size:300%;
                margin-left:25%;
                width:150%;
                transform: rotateX(45deg);
            }
            to{
                margin-left: 0%;
                width: 100%;
                transform: rotateX(90deg);
            }
        }
        @-moz-keyframes slidein {
            from{
                margin-left: 100%;
                width: 300%;
                transform: rotateX(0deg);
            }
            75% {
                font-size:300%;
                margin-left:25%;
                width:150%;
                transform: rotateX(45deg);
            }
            to{
                margin-left: 0%;
                width: 100%;
                transform: rotateX(90deg);
            }
        }
        .newspaper{
            -webkit-column-count: 3;
            -moz-column-count: 3;
            column-count: 3;

            -webkit-column-gap: 40px;
            -moz-column-gap: 40px;
            column-gap: 40px;

            -webkit-column-rule: 40px inset #ff00ff;
            -moz-column-rule: 40px inset #ff00ff;
            column-rule: 40px inset #ff00ff;
            
        }
    </style>
</head>
<body>
<p>This is a test.</p>
<p>This is a test.</p>
<img id="myID" src="img/1.jpeg"/>
<p>This is a test.</p>
<p>
    <button>Static</button>
    <button>Relative</button>
    <button>Absolute</button>
    <button>Fixed</button>
</p>

<p class="toggle">This is a test.</p>
<p class="toggle">This is a test.</p>
<p>This is a test.</p>
<p>
    <button class="button">Left</button>
    <button class="button">Right</button>
    <button class="button">None</button>
</p>

<p id="grad1">Line-gradient</p>
<p id="grad2">Line-gradient</p>
<div id="grad3"></div><br>
<div id="grad4"></div><br>
<div id="grad5"></div><br>
<div id="grad6"></div><br>
<div id="grad7"></div><br>
<h1 id="shadow">Text-shadow effect!</h1>

<div id="translate1">hello</div>
<div id="translate2">hello</div>

<div id="transition1"></div>



<h1 id="animation1">Watch me move!</h1>

<div class="newspaper">
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.
</div>

<div style="width: 100%;height: 200px" id="foot"></div>
<script>
    var buttons = document.getElementsByTagName("BUTTON");
    for (var i=0;i<buttons.length;i++){
        buttons[i].onclick = function (e) {
            document.getElementById("myID").style.position = e.target.innerHTML;
        }
    }

    var floats = document.getElementsByClassName("button");
    for (var i=0;i<floats.length;i++){
        floats[i].onclick = function (e) {
            var elements = document.getElementsByClassName("toggle");
            for (var i=0;i<elements.length;i++){
                elements[i].style.cssFloat = e.target.innerHTML;
            }
        }
    }

</script>
</body>
</html>